extends ../layout

block content
	.container
		.row
			form.form-horizontal(method="post", action="/admin/menu/save")
				input(type="hidden", name="menu[_id]", value="#{menu._id}")

				.form-group
					label.col-sm-2.control-label(for="txt-name") Name
					.col-sm-10
						input#txt-name.form-control(type="text", name="menu[name]", value="#{menu.name}")

				.form-group
					label.col-sm-2.control-label(for="txt-parentid") ParentID
					.col-sm-10
						input#txt-parentid.form-control(type="text", name="menu[parentid]", value="#{menu.parentid}")
						
				.form-group
					label.col-sm-2.control-label(for="txt-level") Level
					.col-sm-10
						input#txt-level.form-control(type="text", name="menu[level]", value="#{menu.level}")

				.form-group
					label.col-sm-2.control-label(for="txt-url") Url
					.col-sm-10
						input#txt-url.form-control(type="text", name="menu[url]", value="#{menu.url}")


				.form-group
					label.col-sm-2.control-label(for="txt-description") Description
					.col-sm-10
						input#txt-description.form-control(type="text", name="menu[description]", value="#{menu.description}")
							
				.form-group
					label.col-sm-2.control-label(for="txt-status") Status
					.col-sm-10
						input#txt-status.form-control(type="text", name="menu[status]", value="#{menu.status}")

				.form-group
					.col-sm-offset-2.col-sm-10
						button.btn.btn-default(type="submit") 保存